﻿using Web_Oto.Bases;
using Web_Oto.Data;

namespace Web_Oto.Business
{
    public class IntroductionBus : busObject
    {
        #region Constructor

        public IntroductionBus() : base()
        {
            m_objDAL = new IntroductionDal(base.connectionstring, base.connectiontype);
        }

        public IntroductionBus(string connectionString) : base(connectionString)
        {
            m_objDAL = new IntroductionDal(base.connectionstring, base.connectiontype);
        }

        public IntroductionBus(string connectionString, string connectionType)
            : base(connectionString, connectionType)
        {
            m_objDAL = new IntroductionDal(base.connectionstring, base.connectiontype);
        }

        private IntroductionDal m_objDAL;

        #endregion

        #region methods

        public Introduction GetIntroduction()
        {
            return m_objDAL.GetIntroduction();
        }

        public int Save(string description)
        {
            return m_objDAL.Save(description);
        }
        
        #endregion
    }
}
   